cmake_minimum_required(VERSION 3.4.1)

add_library( native-lib

             SHARED

             src/main/cpp/native-lib.cpp )


add_library( opencv_java3 SHARED IMPORTED )
set_target_properties(
    opencv_java3
    PROPERTIES IMPORTED_LOCATION
    ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libopencv_java3.so
    )

include_directories(
    N:/OpenCVAndroid/OpenCV-android-sdk/sdk/native/jni/include
)

find_library( log-lib

              log )


target_link_libraries( native-lib
                       opencv_java3
                       ${log-lib} )